package com.renjie.homework;

public class ArtistDemo {
    public static void main(String[] args) {
        Artist artist = new Artist();

        Shape shape = new Shape();
        artist.drawShape(shape);
        System.out.println("----------------------");

        Rectangle rectangle = new Rectangle(7, 3);
        artist.drawShape(rectangle);
        System.out.println("----------------------");

        RightTriangle rightTriangle = new RightTriangle(7, 4);
        artist.drawShape(rightTriangle);
    }
}

